﻿@model Urs.Admin.Models.Settings.TemplateSettingsModel


<script>
    layui.config({
        base: '../../../layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'set'], function () {
        var $ = layui.$
            , form = layui.form
            ,active = { }
            form.on('submit(save_btn)', function (obj) {
              var field = obj.field;
                $.post('@Url.Action("Template")', field, function (rep) {
                    if (rep.success == 1) {
                        layer.msg('保存成功');
                    }
                });
                return false;
         });
        $('.layui-btn.layuiadmin-btn-tags').on('click', function () {
            var type = $(this).data('type');
            active[type] ? active[type].call(this) : '';
        });

    });
</script>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">海报模板设置</div>
                <div class="layui-card-body">
                    <div class="layui-form" wid200 lay-filter="">
                        <div class="layui-tab">
                            <ul class="layui-tab-title">
                                <li class="layui-this">模板1</li>
                                <li>模板2</li>
                                <li>模板3</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <div class="layui-form-item">
                                        <u-label asp-for="Picture1Id" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="Picture1Id" />
                                            <span asp-validation-for="Picture1Id"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" style="display:none;">
                                        <u-label asp-for="Text1" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="Text1" />
                                            <span asp-validation-for="Text1"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" style="display:none;">
                                        <u-label asp-for="AltText1" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="AltText1" />
                                            <span asp-validation-for="AltText1"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <u-label asp-for="SubText1" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="SubText1" />
                                            <span asp-validation-for="SubText1"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" style="display:none;">
                                        <u-label asp-for="Time1" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="Time1" />
                                            <span asp-validation-for="Time1"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <u-label asp-for="Ext1" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="Ext1" />
                                            <span asp-validation-for="Ext1"></span>
                                        </div>
                                    </div>
                                </div>

                                <div class="layui-tab-item">
                                    <div class="layui-form-item">
                                        <u-label asp-for="Picture2Id" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="Picture2Id" />
                                            <span asp-validation-for="Picture2Id"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" style="display:none;">
                                        <u-label asp-for="Text2" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="Text2" />
                                            <span asp-validation-for="Text2"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" style="display:none;">
                                        <u-label asp-for="AltText2" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="AltText2" />
                                            <span asp-validation-for="AltText2"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <u-label asp-for="SubText2" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="SubText2" />
                                            <span asp-validation-for="SubText2"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" style="display:none;">
                                        <u-label asp-for="Time2" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="Time2" />
                                            <span asp-validation-for="Time2"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <u-label asp-for="Ext2" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="Ext2" />
                                            <span asp-validation-for="Ext2"></span>
                                        </div>
                                    </div>
                                </div>

                                <div class="layui-tab-item">
                                    <div class="layui-form-item">
                                        <u-label asp-for="Picture3Id" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="Picture3Id" />
                                            <span asp-validation-for="Picture3Id"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" style="display:none;">
                                        <u-label asp-for="Text3" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="Text3" />
                                            <span asp-validation-for="Text3"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" style="display:none;">
                                        <u-label asp-for="AltText3" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="AltText3" />
                                            <span asp-validation-for="AltText3"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <u-label asp-for="SubText3" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="SubText3" />
                                            <span asp-validation-for="SubText3"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item" style="display:none;">
                                        <u-label asp-for="Time3" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="Time3" />
                                            <span asp-validation-for="Time3"></span>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <u-label asp-for="Ext3" />
                                        <div class="layui-input-inline">
                                            <u-editor asp-for="Ext3" />
                                            <span asp-validation-for="Ext3"></span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <u-label asp-for="Default" />
                            <div class="layui-input-inline">
                                <u-select asp-for="Default" asp-items="Model.DefaultArray" />
                                <span asp-validation-for="Default"></span>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <u-label asp-for="Enabled" />
                            <div class="layui-input-inline">
                                <u-bool asp-for="Enabled" />
                                <span asp-validation-for="Enabled"></span>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <u-label asp-for="TianQiId1" />
                            <div class="layui-input-inline">
                                <u-editor asp-for="TianQiId1" />
                                <span asp-validation-for="TianQiId1"></span>
                            </div>
                            <div class="layui-input-inline">
                                <u-editor asp-for="TianQiId2" />
                                <span asp-validation-for="TianQiId2"></span>
                            </div>
                            <div class="layui-input-inline">
                                <u-editor asp-for="TianQiId3" />
                                <span asp-validation-for="TianQiId3"></span>
                            </div>
                            <div class="layui-input-inline">
                                <u-editor asp-for="TianQiId4" />
                                <span asp-validation-for="TianQiId4"></span>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">图片</label>
                            <div class="layui-input-inline">
                                <u-editor asp-for="TianQiId5" />
                                <span asp-validation-for="TianQiId5"></span>
                            </div>
                            <div class="layui-input-inline">
                                <u-editor asp-for="TianQiId6" />
                                <span asp-validation-for="TianQiId6"></span>
                            </div>
                            <div class="layui-input-inline">
                                <u-editor asp-for="TianQiId7" />
                                <span asp-validation-for="TianQiId7"></span>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit lay-filter="save_btn">@T("Admin.Common.Save")</button>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
